﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Station.Inspect.UI
{
    public partial class FormCellGuide : Form
    {
        public int rows=1;
        public int cols=1;
        public int width = 0;
        public int height = 0;
        public FormCellGuide()
        {
            InitializeComponent();
            tbRows.Text = rows.ToString();
            tbCols.Text = cols.ToString();
            tbWidth.Text = width.ToString();
            tbHeight.Text = height.ToString();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                rows = int.Parse(tbRows.Text);
                cols = int.Parse(tbCols.Text);
                width = int.Parse(tbWidth.Text);
                height = int.Parse(tbHeight.Text);
                DialogResult = DialogResult.OK;
                this.Close();
            }
            catch(Exception ex)
            {

            }
            
        }
    }
}
